package com.mxfcode.back.mapper;

import com.mxfcode.entity.BBSAttachment;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

/**
 * @接口名 FileMapper
 * @描述 TODO
 * @作者 mxf
 * @创建日期 2021-04-01 8:28
 **/
@Repository
public interface FileMapper {

    int addFile(@Param("fileName") String fileName, @Param("pathString") String pathString, @Param("saveName") String saveName);

    BBSAttachment getFileInfoBySaveName(@Param("saveName") String saveName);

    int updateFiles(String files, int resourceId);

    void deleteFileByResource(Integer id, String files);

    int delByResourceId(Integer id);
}
